var vm = new Vue({
    el:"#app",
    data:{
        staff:'',
    },
    methods: {
        getStaffInfo: function () {
            let str = location.search;
            str = str.split("=")[1];

            axios.post("/staff/queryStaffInfo",{staffId:str}).then(
                function (result) {
                    vm.staff = result.data;
                    console.log(vm.staff);
                }, function (err) {
                    console.log(err);
                }
            )
        }
    },

    //页面加载完自动执行
    mounted(){
        this.getStaffInfo();
    }
})

function toStaffList(){
    location.href = "../../../../templates/sysManage/staffManage/staffList.html";
}